﻿namespace SZJT
{
    public static class Constants
    {
        public const string COMPONENT_ADAPTERS = "component_adapters";
        public const string ACCOUNT_ADAPTER = "Account";
        public const string PUBLIC_ADAPTER = "Public";
        public const string CERT_ADAPTER = "Certificate";
        public const string COMM_TICKET = "CommonTicket";
        public const string ORG_LISTENER_INFO = "OrgListenerInfo";
        /*适配器用户常量*/
        /// <summary>
        /// 帐号表Account中Type：人员或应用软件标识
        /// </summary>
        public const string ORG_ACCOUNT_MEMBER = "Application";
        /// <summary>
        /// 帐号表Account中Status标识 
        /// </summary>
        public const string ORG_ACCOUNT_DISABLE_STATUS = "Disable";
        public const string ORG_ACCOUNT_ENABLE_STATUS = "Enable";

        public const string GET_METHOD_NAME = "GetData";
        public const string SET_METHOD_NAME = "SetData";
        public const string TRANSFORM_DATA = "TransformData";
        public const string INIT_GUID = "9006f841-9f48-5c44-7773-686d5a7a0427";
        public const string SERVERINFO_TASK_GUID = "e32cc6ac-199c-4a6f-93f8-937d3e482d13";
        public const string SERVERINFO_DATA_GUID = "dffb35bb-a00a-4438-934d-90f2d79e0440";
        public const string SERVERINFO_DATA_TYPE = "ServerInfo";
        public const string INIT_TYPE = "InitAdapter";
        public const string STORE_LOCATION = "LocalMachine";
        public const string STORE_NAME = "My";
        public const string FIND_TYPE = "";

        public const string BatchRootName = "Documents";
        public const string TempPathStr = "";
        public const string Blank = " ";
        public const string GetMethodName = "GetData";
        public const string SetMethodName = "SetData";
        public const string TranformMethodName = "TransformData";
        public const string SingleMessageRootName = "Document";
        public const string MultipleMessageRootName = "Document";
        public const string SingleTransformMessageRootName = "Data";
        public const string SocketMessageRootName = "Command";
        public const string UserIdName = "UserID";
        public const string TaskGuidName = "TaskGuid";
        public const string DataGuidName = "DataGuid";
        public const string DataTypeName = "DataType";
        public const string XmlDataName = "XmlData";
        public const string TypeName = "Type";
        public const string DataInfoName = "DataInfo";
        public const string CreatedByColumnName = "CreatedBy";
        public const string CreatedOnColumnName = "CreatedOn";
        public const string ModifiedByColumnName = "ModifiedBy";
        public const string ModifiedOnColumnName = "ModifiedOn";
        public const string UploadedOnColumnName = "UploadedOn";

        public const string XmlTransformNodeName = "XmlTransform";

        public const string EntityPkName = "Id";
        public const string ServicePkName = "Guid";
        public const string ProjectFlowTask = "FlowTask";
        public const string ProjectFlowStatus = "FlowStatus";
        public const int ProjectFlowPass = 1;
        public const int ProjectFlowEnd = 2;
        public const int MinStatus = 0;
        public const int MaxStatus = 4;

        public const string GetTaskGuid = "ce3f4050-0740-44f9-aec4-fd60622b3bd8";
        public const string SetTaskGuid = "ce3f4050-0740-44f9-aec4-fd60622b3bd8";
        public const string DeleteTaskGuid = "8f84070c-e95b-4861-a76f-ddf949ceb678";
        public const string QueryTaskGuid = "d8677bbf-1f97-4563-b0d4-82f2d9b00767";

        public const string BusinessObjectNamespace = "SZJT.Entity";
        public const string BusinessObjectAssembly = "SZJT.Entity";

        /*
            模式：实体引用Service,Service.Core中反射时配置命名空间 
        */
        public const string OrgBEObjectNamespace = "SZJT.Org.BE";
        public const string OrgBEObjectAssembly = "SZJT.Org.BE";


        public const string QueryObjectPostfix = "Item";
        public const string QueryObjectCollectionPostfix = "ItemCollection";
        public const string ObjectCollectionPostfix = "Collection";
        public const string QueryCriteriaDateBegin = "Begin";
        public const string QueryCriteriaDateEnd = "End";

        public const string PageSizeElementName = "PageSize";
        public const string PageIndexElementName = "CurrentPage";
        public const string OrderByElementName = "OrderBy";
        public const string OrderDirectionElementName = "OrderDirection";

        public const float QueryFloatError = 0.01f;

        public const string AttachmentRootName = "Attachments";
        public const string AttachmentNodeName = "Attachment";
        public const string AttExt = "Ext";
        public const string AttMIME = "MIME";
        public const string AttName = "Name";
        public const string VirtualPathStr = "\\Attachments\\";
        public const string RemindElementName = "LastRemindTime";
        public const string RemindColumn = "ModifiedOn";
        public const string UpdateColumn = "UploadedOn";

        /*组件应用标识*/
        public const string ORG_GUID = "0690f841-7773-445c-9f48-a7a0427686d5";
        public const string MSG_GUID = "6a6735d4-07db-4974-b2e6-51910c75e3b0";
        public const string LOG_GUID = "56bab432-9996-47d7-9dbf-be0ed4aac915";
        public const string FRM_GUID = "e71d92eb-0f16-46e5-ad25-149ed0fbb94a";
        public const string EXG_GUID = "180188a3-21d2-48dd-a97e-20f7a9141e65";
        public const string RPT_GUID = "0f139335-22a3-49f8-90ce-548fddb4079c";
        public const string DOC_GUID = "60ddd53a-5a1e-40ed-9a90-efa6a53255b4";
        public const string WFL_GUID = "26cd4e5d-c94d-4df3-b5d5-a1e835458acf";
        public const string MDL_GUID = "d7075530-e121-4f65-8df8-8667c1b3d099";

        public const string SUPER_ADMIN_NAME = "SuperAdmin";
    }
}
